package com.mathdroid.gui.splashscreen;

import com.mathdroid.gui.CenteredFrame;

/** 
 * The SplashScreen is a non decorated window, that shows the logo and
 * version, while loading and initializing stuff in the background. 
 */
public final class SplashScreen extends CenteredFrame {
	/**
	 * Default UID.
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * The SplashScreen should not have a window border.
	 */
	private static final boolean UNDECORATED = true;
	
	/**
	 * The SplashScreen should be always on top.
	 */
	private static final boolean ALWAYS_ON_TOP = true;
	
	/**
	 * The SplashScreen should be visible from the beginning.
	 */
	private static final boolean VISIBLE = true;

	/**
	 * Creates a simple centered splash screen.
	 */
	public SplashScreen() {
		super(null);
		this.add(new SplashScreenPanel());
		this.setUndecorated(UNDECORATED);
		this.setAlwaysOnTop(ALWAYS_ON_TOP);
		this.setVisible(VISIBLE);
		this.pack();
	}
}
